<%@page import="java.util.Collections"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<%@page import="java.util.ArrayList"%>
<%
	Cache caches = null;
	try {
		caches = CacheManager.getInstance().getCacheFactory()
				.createCache(Collections.emptyMap());
	} catch (CacheException e) {
		e.printStackTrace();

	}
	ArrayList<String> view = null;
	if (caches.containsKey("recentsiteupdate")) {
		view = (ArrayList<String>) caches.get("recentsiteupdate");
	}
	String title = "Recent site update";
	String description = "These are  the List of Recently updated domains. They have alexa rank less than 500,000";
	String keyword = "site,site update";
%>
<%@page contentType="text/html;charset=UTF-8" language="java"%>
<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="<%=title%>" />
	<jsp:param name="description" value="<%=description%>" />
	<jsp:param name="keywords" value="<%=keyword%>" />
	<jsp:param name="menu" value="home" />
</jsp:include>


<div class="bd">
	<div class="l">
		<div class="rib">
			<h1>Recent site update</h1>
		</div>
		<div class="cont">
			<p>These are the List of Recently updated domains. They have
				alexa rank less than 500,000</p>
			<ul class="liss">
				<%
					if (view != null) {
						for (int j = 0; j < view.size(); j++) {
				%>
				<li><a href="/sites/<%=view.get(j)%>"><%=view.get(j)%></a></li>
				<%
					if (j == 100)
								break;
						}
					}
				%>
			</ul>
		</div>
	</div>
	<div class="r">
		<%@ include file='/element/search.jsp'%>

		<div class="bol">
				<jsp:include page="adv/adv2.jsp"></jsp:include> 
			</div>
		<div class="bol">
				<jsp:include page="adv/adv2.jsp"></jsp:include> 
			</div>	
	</div>
</div>

<jsp:include page="layout/footer.jsp"></jsp:include>
